@extends('layouts.default')
@section('title', '用户登录')

@section('content')
    <div class="offset-md-2 col-md-8">
        <div class="card">
            <div class="card-header text-center">
                <h5>用户登录</h5>
            </div>
            <div class="card-body">
                @include('shared._errors')

                <form method="POST" action="{{ route('login') }}">
                    {{ csrf_field() }}

                    <div class="mb-3">
                        <label for="email">邮箱：</label>
                        <input type="text" name="email" class="form-control" value="{{ old('email') }}">
                    </div>

                    <div class="mb-3">
                        <label for="password">密码：</label>
                        <input type="password" name="password" class="form-control" value="{{ old('password') }}">
                    </div>
                    <div class="form-check">
                        <input type="checkbox" class="form-check-input" name="remember" id="remember">
                        <label class="form-check-label" for="remember">记住我</label>
                    </div>
                    <div class="text-center">
                        <button type="submit" class="btn btn-primary">登录</button>
                    </div>
                </form>
                <hr>
                <p class="d-flex justify-content-between text-secondary text-sm-center" style="font-size: 12px;">
                    <a class="text-info text-decoration-none" href="{{ route('user.create') }}">我要注册账号</a>
                    <a class="text-warning text-decoration-none" href="{{ route('password.request') }}">忘记密码?</a>
                </p>


            </div>
        </div>
    </div>
@stop
